package com.scpii.universal.dto;

import com.scpii.universal.constant.GenericConstants;
import com.scpii.universal.hibernate.entity.BaseEntity;

/**
 * universalWeb
 * @author liuhj
 * 2012-7-30下午01:31:56
 */
public class ViewCateRelationDto extends BaseEntity {
	private Integer intViewCateId;
	private Integer intCateId;
	private Integer intResourceId;
	private Integer intContentType;
	private String varCateName;
	private String varCateImgUrl;
	private String varCateDescrip;
	private Integer intViewId;

	public ViewCateRelationDto(Integer intViewCateId, Integer intCateId,
			Integer intResourceId, Integer intContentType, String varCateName,
			String varCateImgUrl, String varCateDescrip) {
		super();
		this.intViewCateId = intViewCateId;
		this.intCateId = intCateId;
		this.intResourceId = intResourceId;
		this.intContentType = intContentType;
		this.varCateName = varCateName;
		this.varCateImgUrl = varCateImgUrl == null ? "" : (varCateImgUrl
				.startsWith(GenericConstants.IMG_RELATIVE_PREFIX) ? getServerUrl()
						+ varCateImgUrl : varCateImgUrl);
		this.varCateDescrip = varCateDescrip;
	}

	public ViewCateRelationDto(Integer intViewCateId, Integer intResourceId,
			Integer intViewId) {
		super();
		this.intViewCateId = intViewCateId;
		this.intResourceId = intResourceId;
		this.intViewId = intViewId;
	}

	public Integer getIntViewId() {
		return intViewId;
	}

	public void setIntViewId(Integer intViewId) {
		this.intViewId = intViewId;
	}

	public Integer getIntViewCateId() {
		return intViewCateId;
	}

	public void setIntViewCateId(Integer intViewCateId) {
		this.intViewCateId = intViewCateId;
	}

	public Integer getIntCateId() {
		return intCateId;
	}

	public void setIntCateId(Integer intCateId) {
		this.intCateId = intCateId;
	}

	public Integer getIntResourceId() {
		return intResourceId;
	}

	public void setIntResourceId(Integer intResourceId) {
		this.intResourceId = intResourceId;
	}

	public Integer getIntContentType() {
		return intContentType;
	}

	public void setIntContentType(Integer intContentType) {
		this.intContentType = intContentType;
	}

	public String getVarCateName() {
		return varCateName;
	}

	public void setVarCateName(String varCateName) {
		this.varCateName = varCateName;
	}

	public String getVarCateImgUrl() {
		return varCateImgUrl;
	}

	public void setVarCateImgUrl(String varCateImgUrl) {
		this.varCateImgUrl = varCateImgUrl;
	}

	public String getVarCateDescrip() {
		return varCateDescrip;
	}

	public void setVarCateDescrip(String varCateDescrip) {
		this.varCateDescrip = varCateDescrip;
	}
}
